//分类管理

import { httpForm } from '@/service/network.js'
//获取获取分类列表
export const getkechenglist = (data)=>{
    console.log(data);
    return httpForm(
        '/platform/admin/coursecategoryin',
        data
    )
}
//添加分类
export const addfenlei =(data)=>{
    return httpForm(
        '/platform/admin/coursecategoryadd',
        data
    )

}
//编辑分类
export const editfenlei =(data) =>{
    console.log(data);
    return httpForm(
        '/platform/admin/coursecategoryedit',
        data
    )
}
//删除分类
export const detfenleikey =(data) =>{
    return httpForm(
        '/platform/admin/coursecategorydel',
        data
    )
}
//隐藏的分类列表
export const  concechenglist = (data)=>{
    console.log(data);
    return httpForm(
        '/platform/admin/coursecategorydel',
        data
    )
}

//课程管理

// 获取课程列表
export const kechenglist  = (data)=>{
    console.log(data)
    return httpForm(
        '/platform/admin/course',
        data
    )
}
//添加课程
export const getpermissionlist  = (data)=>{
    console.log(data);
    return httpForm(
        '/platform/admin/courseadd',
        data
    )
}

//编辑课程
export const editkechengitem = (data) =>{
    console.log(data);
    // return httpForm(
    //     '/platform/admin/courseedit',
    //     data
    // )
}

// 获取问卷调查列表
export  const getwenjuanlist =(data) =>{
    console.log(data);
      return httpForm(
        '/platform/admin/questionin',
        data
    )
} 
//获取权限列表
export const  getquanxianlist = (data)=>{
    console.log(data);
    return httpForm(
      '/platform/admin/courseviewrole',
      data
  )
}
// 删除管理员
export const detguanliyuan = (data)=>{
    console.log(data)
    return httpForm(
        '/platform/admin/admindel',
        data
    )
}